<?php

class CreateTopicForm extends MForm {
   
    public function  __construct() {

        parent::__construct(__route('ml-forum/topics/create'));
        $this->setMethod(self::METHOD_POST);
        $this->setEnctype(self::ENCTYPE_DATA);
        $this->add(self::ELEMENT_TEXT, 'subject')
                    ->setLabel('Sujet :')
                    ->setId('subject');
        $this->add(self::ELEMENT_TEXTAREA, 'first_post')
                    ->setId('message')
                    ->setLabel('First post :')
                    ->setHtmlOption('ROWS', '15')
                    ->setHtmlOption('COLS', '110');
        $this->add(self::ELEMENT_SUBMIT, 'create')
                    ->setValue('Create');
    }

}

?>
